package com.fileshare.web.dao;

import com.fileshare.web.dao.base.SequenceGenerater;
import com.fileshare.web.entity.Category;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface CategoryRepository extends SequenceGenerater<Category> {
    List<Category> findAll(Integer level);

    Category findByName(String categoryName);

    @Override
    Category findBySeq(String seq);
}
